import 'package:flutter/material.dart';
import 'package:test1/FirstPage.dart';
import 'package:test1/SecondPage.dart';

class HomePage extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
   return new MaterialApp(

     routes:{
       '/first':(BuildContext context) => FirstPage(),
       '/second':(BuildContext context) => SecondPage(),
     },
     initialRoute: '/first',
     home: Scaffold(
       appBar: new AppBar(
         title: Text('首页展示'),
       ),
       // body: new Icon(Icons.phone,color: Colors.red,size: 90,),
       body:Center(
         child: Text(
             '首页',
             style: TextStyle(fontSize: 33),
         ),
       ),
     ),
   );
  }

}
